package com.minotauro.i18n.scanner;

import java.io.File;

import com.minotauro.bean.property.BeanIsProcessable;
import com.minotauro.bean.property.BeanIsTraversable;
import com.minotauro.bean.property.BeanVisitor;
import com.minotauro.i18n.base.I18NIsProcessable;
import com.minotauro.i18n.base.I18NIsTraversable;
import com.minotauro.i18n.base.I18NVisitor;

public class Main {

  public static void main(String[] args) {

    File root = new File("src/main/resources");
    File out = new File("src/main/out");
    
//    File root = new File(args[0]);
//    File out = new File(args[1]);
    
    I18NIsTraversable traversableI18N = new I18NIsTraversable();
    I18NIsProcessable processableI18N = new I18NIsProcessable();
    I18NVisitor visitorI18N = new I18NVisitor(processableI18N, out);
    
    
    BeanIsTraversable traversableBean = new BeanIsTraversable();
    BeanIsProcessable processableBean = new BeanIsProcessable();
    BeanVisitor visitorBean = new BeanVisitor(processableBean, out);
    
    Scanner i18n = new Scanner(traversableI18N , processableI18N , visitorI18N );
    Scanner prop = new Scanner(traversableBean, processableBean, visitorBean);
    
    i18n.run(root);
    prop.run(root);
  }
}